<%@ page import="openvote.Eleitor" %>



<div class="fieldcontain ${hasErrors(bean: eleitorInstance, field: 'nome', 'error')} required">
	<label for="nome">
		<g:message code="eleitor.nome.label" default="Nome" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nome" maxlength="50" required="" value="${eleitorInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eleitorInstance, field: 'sexo', 'error')} required">
	<label for="sexo">
		<g:message code="eleitor.sexo.label" default="Sexo" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="sexo" from="${['M', 'F']}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eleitorInstance, field: 'estadoCivil', 'error')} required">
	<label for="estadoCivil">
		<g:message code="eleitor.estadoCivil.label" default="Estado Civil" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="estadoCivil" from="${['Casado', 'Solteiro']}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eleitorInstance, field: 'endereco', 'error')} required">
	<label for="endereco">
		<g:message code="eleitor.endereco.label" default="Endereco" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="endereco" maxlength="60" required="" value="${eleitorInstance?.endereco}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eleitorInstance, field: 'cpf', 'error')} required">
	<label for="cpf">
		<g:message code="eleitor.cpf.label" default="Cpf" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="cpf" type="number" value="${eleitorInstance.cpf}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: eleitorInstance, field: 'rg', 'error')} required">
	<label for="rg">
		<g:message code="eleitor.rg.label" default="Rg" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="rg" type="number" value="${eleitorInstance.rg}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: eleitorInstance, field: 'dataNasc', 'error')} required">
	<label for="dataNasc">
		<g:message code="eleitor.dataNasc.label" default="Data Nasc" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataNasc" precision="day"  value="${eleitorInstance?.dataNasc}"  />
</div>

